<?php

class express_rpc_unionpay {

    const _TO_NODE_ID = '1705101437';

    public function bind() {
        base_kvstore::instance('b2c/bind/unionpay')->store('b2c_bind_unionpay', true);
        return true;
    }

    public function unbind() {
        base_kvstore::instance('b2c/bind/unionpay')->store('b2c_bind_unionpay', false);
        return true;
    }

    private function _gen_bind_sign($params) {
        ksort($params);
        $str = '';
        foreach ($params as $key => $value) {
            $str .= $value;
        }
        $sign = md5($str);
        return $sign;
    }
}